package com.github.tvbox.osc.event;

/**
 * @ClassName: PlayEvent
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author: huangrongcai
 * @date: 2024/7/3
 * @Copyright: 黄嵘才（HuangRc)
 */
public class PlayEvent {
    public int type;
    public Object msg;

    public PlayEvent(int type, Object msg) {
        this.type = type;
        this.msg = msg;
    }

    public static PlayEvent PLAY_ERROR = new PlayEvent(0, "播放异常");
    public static PlayEvent PLAY_ERROR_GET = new PlayEvent(1, "获取播放异常");
    public static final int PLAY_PREV = 4;
    public static final int PLAY_NEXT = 5;
    public static PlayEvent PLAY_NEXT(Object obj){
        return new PlayEvent(PLAY_NEXT, obj);
    }
    public static PlayEvent PLAY_PREV(Object obj){
        return new PlayEvent(PLAY_PREV, obj);
    }
    public static PlayEvent PLAY(Object obj){
        return new PlayEvent(PLAY_NEXT, obj);
    }
}
